// memuList内部children接口
// interface Insideobj {
//   title: string;
//   key: string;
//   icon: string;
//   isPublic?: Boolean;
//   children?: Array<obj>;
// }

// memuList接口
interface obj {
  title: string;
  key: string;
  icon: string;
  isPublic?: Boolean;
  children?: Array<obj>;
}

const menuList: Array<obj> = [
  {
    title: "首页", //菜单标题名称
    key: "/admin/home", //对应的path
    icon: "HomeOutlined", //图标名称
    isPublic: true, //是否公开的
  },
  {
    title: "商品",
    key: "/admin/products",
    icon: "ShopOutlined",
    children: [
      {
        title: "品类管理",
        key: "/admin/category",
        icon: "DatabaseOutlined",
      },
      {
        title: "商品管理",
        key: "/admin/product",
        icon: "DatabaseOutlined",
      },
    ],
  },

  {
    title: "用户管理",
    key: "/admin/user",
    icon: "UserSwitchOutlined",
  },
  {
    title: "角色管理",
    key: "/admin/role",
    icon: "UsergroupDeleteOutlined",
  },
  {
    title: "图形图表",
    key: "/admin/charts",
    icon: "AreaChartOutlined",
    children: [
      {
        title: "柱形图",
        key: "/admin/charts/bar",
        icon: "BarChartOutlined",
      },
      {
        title: "折线图",
        key: "/admin/charts/line",
        icon: "LineChartOutlined",
      },
      {
        title: "饼图",
        key: "/admin/charts/pie",
        icon: "PieChartOutlined",
      },
    ],
  },
];
export default menuList;
